﻿using MediatR;
using Medical.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace Medical.Api.Write.Application.Command.DepartmentManagement.Adopted
{
    /// <summary>
    /// 修改领用申请状态命令
    /// </summary>
    public class UpdateAdoptedStatusCommands : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 领用申请ID
        /// </summary>
        [Required(ErrorMessage = "领用申请ID不能为空")]
        public int Id { get; set; }

        /// <summary>
        /// 领用状态
        /// 1:新增  2:审核  3:接收
        /// </summary>
        [Required(ErrorMessage = "领用状态不能为空")]
        [Range(1, 3, ErrorMessage = "领用状态只能是1(新增)、2(审核)或3(接收)")]
        public int TouseStatus { get; set; }

    }
}
